home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <!DOCTYPE Model SYSTEM "uml.dtd">
-
- <Model>
- <Package NAME = "Lift">
- <StatechartDiagram name = "Lift">
-
- <PseudoState kind = "initial">
- <Transition target = "On first Floor"/>
- </PseudoState>
-
- <State name = "On first Floor">
- <Transition target = "Moving up">
- <TransitionLabel>
- <Event name = "go up">
- <Parameter NAME = "floor"/>
- </Event>
- </TransitionLabel>
- </Transition>
- </State>
-
- <State name = "Moving up">
- <ActionSequence>
- <Event name = "do"/>
- <Action>moving to the target floor</Action>
- </ActionSequence>
- <Transition target = "Idle">
- <TransitionLabel>
- <Event name = "arrived"/>
- </TransitionLabel>
- </Transition>
- </State>
-
- <State name = "Idle">
- <ActionSequence>
- <Event name = "do"/>
- <Action>increase timer</Action>
- </ActionSequence>
- <Transition target = "Moving down">
- <TransitionLabel>
- <Event name = "go down">
- <Parameter NAME = "floor"/>
- </Event>
- </TransitionLabel>
- </Transition>
- <Transition target = "On first floor">
- <TransitionLabel>
- <Event name = "go down">
- <Parameter NAME = "first_floor"/>
- </Event>
- <Guard>timer = time_out</Guard>
- <SendClause>test</SendClause>
- </TransitionLabel>
- </Transition>
- <Transition target = "Moving up">
- <TransitionLabel>
- <Event name = "go up">
- <Parameter NAME = "floor"/>
- </Event>
- </TransitionLabel>
- </Transition>
- </State>
-
- <State name = "Moving down">
- <ActionSequence>
- <Event name = "do"/>
- <Action>moving to the target floor</Action>
- </ActionSequence>
- <Transition target = "Idle">
- <TransitionLabel>
- <Event name = "arrived"/>
- </TransitionLabel>
- </Transition>
- </State>
-
- </StatechartDiagram>
- </Package>
- </Model>
-